﻿using DataServer.ApplicationLib.Entities;
using Swimj.Core.DependencyInjection;
using Swimj.DataCore;

namespace DataServer.ApplicationLib.Repositories
{
    public interface IDimensionRepository : IScopedDependency
    {
        Task<DimensionEntity> GetAsync(Guid id);

        Task InsertAsync(DimensionEntity dimensionEntity);

        Task<Tuple<IEnumerable<DimensionEntity>, int>> QueryFilterByPageAsync(ConditionCollection conditions,
            int pageIndex, int pageSize);
    }
}